package exception;

public class ThrowDemoZUOYE {
    public static void main(String[] args)  {
        Student qyz=new Student();
        try {
            qyz.setAge(23);
        } catch (IllegalAgeException e) {
            e.printStackTrace();
        }
        System.out.println("他的年龄："+qyz.getAge()+"岁");
    }
}
